module.exports = function (app) {
  const { router, middleware } = app;

  const prefix = "/api/topic-lesson-exams";
  const controller = app.controller.topicLessonExam;

  router.post(
    prefix + "/create",
    middleware.auth(),
    controller.createExamRecord
  );

  router.get(prefix + "/get", middleware.auth(), controller.getExamRecord);

  router.post(
    prefix + "/update-answers",
    middleware.auth(),
    controller.updateAnswers
  );
};
